package com.ebao.po.mail;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name = "T_Email_Record")
public class TEmailRecord implements Serializable {

	private Long id;
	private String from;		// 来自
	private String to;			// 收件人
	private String subject;		// 标题
	private String content;		// 内容
	private String attachments;	// 附件
	private Boolean hassend;	// 状态(已发送/为发送)
	private String type;		// 类型(公告/活动/反馈)
	private Date sendDate;		// 发送日期
	private String toType;		// 发布对象（0所有用户、1所有商户、2指定）

	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}

	public String getFrom() {
		return from;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getAttachments() {
		return attachments;
	}

	public void setAttachments(String attachments) {
		this.attachments = attachments;
	}

	public Boolean getHassend() {
		return hassend;
	}

	public void setHassend(Boolean hassend) {
		this.hassend = hassend;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getSendDate() {
		return sendDate;
	}

	public void setSendDate(Date sendDate) {
		this.sendDate = sendDate;
	}

	public String getToType() {
		return toType;
	}

	public void setToType(String toType) {
		this.toType = toType;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	

}
